package com.iplay.service.query.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import com.iplay.service.query.QueryConditionBuilder;
import com.iplay.service.query.QueryCondition.Operator;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface QueryCondition {
	/**
	 * The value should be the same as persistence entity(DO) attribute that you want to query
	 */
	String value() default "";
	
	Operator operator() default Operator.EQ;
	
	boolean ignore() default false;
	
	Class<? extends QueryConditionBuilder> builder() default QueryConditionBuilder.class;
}
